package com.backend.modules.task.service;

import com.backend.modules.task.dto.SubmissionQueryDTO;
import com.backend.modules.task.dto.SubmissionReviewDTO;
import com.backend.modules.task.entity.TaskSubmission;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TaskSubmissionService {

    /**
     * 审核提交
     */
    void review(Long id, SubmissionReviewDTO dto);
    
    /**
     * 批量审核提交
     */
    void batchReview(List<Long> ids, SubmissionReviewDTO dto);
    
    /**
     * 获取提交详情
     */
    TaskSubmission getById(Long id);
    
    /**
     * 分页查询提交记录
     */
    Page<TaskSubmission> page(SubmissionQueryDTO query, Pageable pageable);
    
    /**
     * 更新提交信息
     */
    void update(TaskSubmission submission);
    
    /**
     * AI审核提交
     */
    void aiAudit(Long submissionId);
} 